home *** CD-ROM | disk | FTP | other *** search
- @echo off
- goto Start
-
- ╒══════════════════════════════════════════════════════════════╗
- │ ┌───────────── ║
- │ │ LHA_ZIP.BAT █ ║
- │ ▄▄▄▄▄▄▄▄▄▄▄▄▄█ ║
- │ ║
- │ ║
- │ Sun 05-01-1994 13:59:38 ║
- │ ║
- │ TYPE: LHA_ZIP /? for Help Screen ║
- │ ║
- │ John De Palma on CompuServe 76076,571 ║
- │ ║
- └──────────────────────────────────────────────────────────────╜
-
- :Start
- if "%1"=="/?" goto Help
- if not exist enter.dat goto Error1
- rem if the next two files are in your PATH, REM out the next two lines.
- if not exist pkunzip.exe goto Error2
- if not exist lha.exe goto Error3
- if not "%1"=="" goto TestAll
-
- for %%v in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do call %0 %%v*
- goto End
-
- :TestAll
- if exist lha_list.txt goto Again1
- if exist zip_list.txt goto Again1
- @echo off
- echo _________________________LHA *.EXE and *.LZH list__________________________ > lha_list.txt
- echo _________________________ZIP *.EXE and *.ZIP list__________________________ > zip_list.txt
- echo. >> lha_list.txt
- echo. >> zip_list.txt
- date >> lha_list.txt < enter.dat
- time >> lha_list.txt < enter.dat
- date >> zip_list.txt < enter.dat
- time >> zip_list.txt < enter.dat
-
- :Again1
-
- if NOT exist %1.exe goto NotExist
- echo.
- echo Working ....
- echo.
- echo FOUND %1.EXE
- lha l %1.exe >> lha_list.txt
- pkunzip %1.exe -vcn >> zip_list.txt
- if exist %1.zip goto MakeZIP
- :ChkLHA
- if exist %1.lzh goto MakeLHA
- goto End
- :MakeZIP
- echo.
- echo Working ....
- echo.
- echo FOUND %1.ZIP
- pkunzip %1.zip -vcn >> zip_list.txt
- goto ChkLHA
- goto End
- :MakeLHA
- echo.
- echo Working ....
- echo.
- echo FOUND %1.LZH
- lha l %1 >> lha_list.txt
- goto End
- :NotExist
- if exist %1.zip goto MakeZIP
- if exist %1.lzh goto MakeLHA
- echo.
- echo Working ....
- echo.
- if NOT exist %1.exe echo NOT Found %1.exe
- if NOT exist %1.zip echo NOT Found %1.zip
- if NOT exist %1.lzh echo NOT Found %1.lzh
- goto End
- :Help
- cls
- echo.
- echo.
- echo █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
- echo █ LHA_ZIP.BAT █▒▒
- echo █ █▒▒
- echo █ PURPOSE: Lists files in LHA & ZIP Files █▒▒
- echo █ in two text files called: █▒▒
- echo █ █▒▒
- echo █ LHA_LIST.TXT █▒▒
- echo █ ZIP_LIST.TXT █▒▒
- echo █ █▒▒
- echo █ COMMAND: 1- LHA_ZIP /? to display this screen █▒▒
- echo █ █▒▒
- echo █ 2- LHA_ZIP A* (All files, first letter "A") █▒▒
- echo █ (don't need *.EXE, *.ZIP, or *.LZH) █▒▒
- echo █ █▒▒
- echo █ 3- LHA_ZIP (processes =ALL= files!!!!) █▒▒
- echo █ █▒▒
- echo █ WARNING: If you have many MegaBytes of Files this █▒▒
- echo █ program will take several minutes.... █▒▒
- echo █ DO NOT REBOOT! █▒▒
- echo █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█▒▒
- echo ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
- echo.
- pause
- goto End
- :Error1
- cls
- echo.
- echo.
- echo ╔═══════════════════════════════════════════════╗
- echo ║ Missing File ERROR! ║
- echo ║ ║
- echo ║ The File ENTER.DAT can't be Found! ║
- echo ║ Must have ENTER.DAT to run LHA_ZIP.BAT ║
- echo ║ Sorry Must Abort.... ║
- echo ╚═══════════════════════════════════════════════╝
- echo
- pause
- goto End
- :Error2
- cls
- echo.
- echo.
- echo ╔═══════════════════════════════════════════════╗
- echo ║ Missing File ERROR! ║
- echo ║ ║
- echo ║ The File PKUNZIP.EXE can't be Found! ║
- echo ║ Must have PKUNZIP.EXE to run LHA_ZIP.BAT ║
- echo ║ Sorry Must Abort.... ║
- echo ╚═══════════════════════════════════════════════╝
- echo
- pause
- goto End
- :Error3
- cls
- echo.
- echo.
- echo ╔═══════════════════════════════════════════════╗
- echo ║ Missing File ERROR! ║
- echo ║ ║
- echo ║ The File LHA.EXE can't be Found! ║
- echo ║ Must have LHA.EXE run LHA_ZIP.BAT ║
- echo ║ Sorry Must Abort.... ║
- echo ╚═══════════════════════════════════════════════╝
- echo
- pause
- goto End
- :End
-